package com.ysx.tmall.user.service.impl;

import com.ysx.tmall.user.bean.UserBean;
import com.ysx.tmall.user.dao.UserDao;
import com.ysx.tmall.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public int addUser(UserBean user) {
        return userDao.addUser(user);
    }

    @Override
    public UserBean findUserById(Integer id) {
        return userDao.findUserById(id);
    }
}
